package com.poker.duiued;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.poker.jkiuus.R;
import com.poker.jkiuus.uyrfgd.AppManager;


public class AboutActivity extends AppCompatActivity {
    @SuppressLint("SetTextI18n")
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);

        AppManager.addActivity(this);

        TextView tvVersion = findViewById(R.id.tv_about_version);

        try {
            String versionName = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
            tvVersion.setText("Current version: " + versionName);
        } catch (Exception e) {
            e.printStackTrace();
            tvVersion.setText("Version: N/A");
        }
    }
}
